package com.mszlu.rpc.consumer.config;

import com.dai.rpc.annotation.EnableHttpClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
// 自定义扫描路径
//@EnableHttpClient(basePackage = "com.mszlu.rpc.consumer")
public class RestConfig {

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
